<template>
  <div id="app">
    <h1>ElementUI Toolkit Demo</h1>
    <h2>CrudTable 示例</h2>
    <CrudTable :data="tableData" :columns="columns" />
    <enh-select size="mini" v-model="svalue" :defaultOptions="[{ value: '5', label: '默认选项' }]">
      <el-option label="选项1" value="1" />
      <el-option label="选项2" value="2" />
    </enh-select>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      svalue: '5',
      tableData: [
        { name: '张三', age: 25 },
        { name: '李四', age: 30 },
      ],
      columns: [
        { prop: 'name', label: '姓名' },
        { prop: 'age', label: '年龄', align: 'right' },
      ],
    };
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
